import request from '@/utils/request'

// 查询考核进度列表
export function listProgress(query) {
  return request({
    url: '/kh/progress/list',
    method: 'get',
    params: query
  })
}

export function stateProgress(query) {
  return request({
    url: '/kh/progress/state',
    method: 'get',
    params: query
  })
}

// 查询考核进度详细
export function getProgress(id) {
  return request({
    url: '/kh/progress/' + id,
    method: 'get'
  })
}

// 新增考核进度
export function addProgress(data) {
  return request({
    url: '/kh/progress',
    method: 'post',
    data: data
  })
}

// 修改考核进度
export function updateProgress(data) {
  return request({
    url: '/kh/progress',
    method: 'put',
    data: data
  })
}

// 删除考核进度
export function delProgress(id) {
  return request({
    url: '/kh/progress/' + id,
    method: 'delete'
  })
}

// 导出考核进度
export function exportProgress(query) {
  return request({
    url: '/kh/progress/export',
    method: 'get',
    params: query
  })
}
